{% extends 'KeioStudyBundle:Theme:layout_flowergarden.html.twig' %}

{% block title %}
	Register
{% endblock %}

{% block content %}


    <h3>User registration</h3>

<form action="{{ path('member_register_process') }}" method="post" {{ form_enctype(form) }}>
  <table width="100%">
    <tr>
      <td colspan="2">
        <div id="div_form_error">
          <font style="color:red; font-size:12">{{ form_errors(form) }}</font>
        </div>
      </td>
    </tr>
    <tr>
      <td width="20%">
        {{ form_label(form.hoten) }}
      </td>
      <td>
        {{ form_widget(form.hoten) }}
      </td>
    </tr>
    <tr>
      <td>
        {{ form_label(form.email) }}
      </td>
      <td>
        {{ form_widget(form.email) }}
      </td>
    </tr>
    <tr>
      <td>
        {{ form_label(form.username) }}
      </td>
      <td>
        {{ form_widget(form.username) }}
      </td>
    </tr>
    <tr>
      <td>
        {{ form_label(form.password) }}
      </td>
      <td>
        {{ form_widget(form.password) }}
      </td>
    </tr>
    <tr>
      <td>
        Nhập lại pasword
      </td>
      <td>
        <input type="password" name="keio_studybundle_usertype[passwordR]" required="required">
      </td>
    </tr>
    <tr>
      <td>
        {{ form_label(form.dienthoai) }}
      </td>
      <td>
        {{ form_widget(form.dienthoai) }}
      </td>
    </tr>
    <tr>
      <td>
        {{ form_label(form.dotuoi) }}
      </td>
      <td>
        {{ form_widget(form.dotuoi) }}

        {{ form_rest(form) }}
		<input type="hidden" name="admcheck" value="0" >

      </td>
    </tr>

    <tr>
      <td colspan="2" align="center">
        <p>
            <button type="submit">Create</button>
        </p>
      </td>
    </tr>
  </table>
</form>

{% endblock %}